//
//  ChoiceButton.m
//  网络FM
//
//  Created by dlios on 15/5/23.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "ChoiceButton.h"

@implementation ChoiceButton


- (void)dealloc
{
    
    [_desc release];
    [_view release];
    [super dealloc];
    
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self myButton];
        
    }
    return self;
}

- (void)myButton
{
    self.view = [[UIImageView alloc]initWithFrame:CGRectMake(30,20,40,40)];
   // [self.view setBackgroundColor:[UIColor grayColor]];
    [self addSubview: self.view ];
    [self.view release];
    
    self.desc = [[UILabel alloc]initWithFrame:CGRectMake(30, 60, 40, 20)];
    [self addSubview:self.desc];
    //[self.desc setBackgroundColor:[UIColor cyanColor]];
    [self.desc release];
    

}



@end
